const custom={
	getNickname:()=>{
		// return localStorage.getItem('nickName');
		return 'admin'
	},
	can_reject_fun:()=>{
		localStorage.getItem('roleType');
		return false
	},
	/*
		scope:展示范围：0-全部 1-超级管理员 2-普通用户
	*/
	getSiders:()=>{//侧边栏 自定义
		var sider=[
				{
					title:'欢迎',
					path:'/dashboard',
					scope:0
				},
				{
					title:'管理员信息',
					path:'/adminer',
					scope:1
				},
				{
					title:'用户管理',
					path:'/userAdmin',
					scope:0
				},
				// {
				// 	title:'活动管理',
				// 	path:'/activity'
				// },
				{
					title:'订单管理',
					path:'/order',
					scope:1
				},
				// {
				// 	title:'服务管理',
				// 	path:'/service'
				// },
				// {
				// 	title:'卡券管理',
				// 	path:'/coupon'
				// },
				{
					title:'门店管理',
					path:'/store',
					scope:1,
					children:[
						{
							title:'门店信息',
							path:'/store/store'
						},
						
						// {
						// 	title:'团购',
						// 	path:'/store/purchase'
						// },
						{
							title:'活动管理',
							path:'/store/activity'
						},
						{
							title:'优惠卡券',
							path:'/store/coupon'
						},
						{
							title:'服务管理',
							path:'/store/service'
						},
					]
				},
				{
					title:'返佣设置',
					path:'/scale',
					scope:1
				},
			]
		return sider
	},
  getRoleName:()=>{
		return "管理员"
    var roleType=localStorage.getItem('roleType');
  	// console.log(roleType)
  	var name='...';
  	if(roleType=='Audit'){
  		name='管理员'
  	}
  	else if(roleType=='Salesman'){
  		name='业务员'
  	}
  	else if(roleType=='Photographer'){
  		name='摄影师'
  	}
  	else if(roleType=='UI'){
  		name='UI设计师'
  	}
  	return name
  }
}
export default custom
